package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * oauth2客户端详情配置
 * </p>
 *
 * @author zl
 * @since 2025-10-18
 */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("oauth_client_details")
        public class OauthClientDetails implements Serializable {

        private static final long serialVersionUID = 1L;
    
                        @TableId("client_id")
                private String clientId;

        @TableField("resource_ids")
    private String resourceIds;

        @TableField("client_secret")
    private String clientSecret;

        @TableField("scope")
    private String scope;

        @TableField("authorized_grant_types")
    private String authorizedGrantTypes;

        @TableField("web_server_redirect_uri")
    private String webServerRedirectUri;

            /**
             * 权限
             */
        @TableField("authorities")
    private String authorities;

        @TableField("access_token_validity")
    private Integer accessTokenValidity;

        @TableField("refresh_token_validity")
    private Integer refreshTokenValidity;

            /**
             * 扩展信息
             */
        @TableField("additional_information")
    private String additionalInformation;

            /**
             * 自动授权
             */
        @TableField("autoapprove")
    private String autoapprove;
    }